from pydantic import BaseModel
from typing import Optional, Union, Literal

class ResponseModel(BaseModel):
    code: Literal[0, 1]
    data: Optional[Union[dict, list[dict]]] = None
    msg: str = ""